<!--main-->
<div id="wrapper"> 
	<fieldset>
		<legend>
    <%= link_to '添加游戏等级', new_level_path %>
    </legend>
      <table style="width:100%" class="table table-bordered">
        <thead>
          <th width="450px">标题</th>
          <th>状态</th>
          <th>管理</th>
        </thead>
        <tbody>
        <% @levels.each do |l| %>
          <tr>
            <td><%= l.title %></td>
            <td>
            <% if l.status == 0 %>启用
            <% elsif l.status == 1 %>禁用
            <% end %>
            </td>
            <td>
            <%= link_to edit_level_path(l.id), :class => 'ddm' do %>
              <span class="icon icon145"></span>
            <% end %>
            <%= link_to level_path(l.id), :method => :delete, :confirm => '确定删除此记录吗?', :class => 'ddm' do %>
              <span class="icon icon186"></span>
            <% end %>
            </td>
          </tr>
          <% end %>
        </tbody>
      </table>
      </fieldset>
      </div>
